package org.zxp.designpattern.adapter;

/**
 * @program: effectiveJava
 * @description:包含了众多方法的计算接口
 * @author: X-Pacific zhang
 * @create: 2019-08-22 15:12
 **/
public interface Calculate {
    public int plus(int a,int b);
    public int multiply(int a,int b);
    public int subtract(int a,int b);
    public int divide(int a,int b);

    public int square(int a,int b);
    public int extract(int a,int b);
    public int logarithm(int a,int b);

    /**
     * 钩子方法演示
     * @param a
     * @return
     */
    public int hook(int a);
}
